#ifndef STATESAVE_H
#define STATESAVE_H

#include <stdint.h>

class LockableStorage;

class StateSave {
public:
	StateSave(LockableStorage *storage);
	int getId(void);
	void setId(int id);
	int getWptIndex();
	void setWptIndex(int index);

private:
	StateSave();
	void read();
	void write();

	LockableStorage *storage_;
	bool read_;
	int id_;
	int index_;
	static const uint16_t addr_;
};

#endif

